:root {
  --main-bg-color: #f3f4f6;
  --main-font-color: #1f2937;
  --code-bg-color: #e5e7eb;
  --code-font-color: #000;
}

body {
  background-color: var(--main-bg-color);
  color: var(--main-font-color);
  margin: 8px;
  font-family: "Arvo", serif;
  font-size: 16px;
  line-height: 1.5rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2em;
  margin-block-start: 1em;
  margin-block-end: 0.5em;
}

.navbar {
  display: flex;
  align-items: center;
  margin-bottom: 18px;

  h1 {
    font-size: 32px;
    margin: 0;
  }

  .navbar-button {
    align-self: stretch;
    display: flex;
    align-items: center;
    background-color: #89bfd3;
    color: #000;
    font-size: 15px;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
  }
  .navbar-button:hover {
    box-shadow: 6px 6px 0px #000;
  }

  .editor {
    margin-right: 1rem;
    margin-left: auto;
  }

  .github {
    gap: 5px;
  }
}

.subtitle {
  font-size: 20px;
  margin: 0 0 18px 0;
}

pre {
  background-color: var(--code-bg-color);
  color: var(--code-font-color);
  padding: 12px 16px;
  border-radius: 4px;
  overflow-x: auto;
}

code {
  font-size: 14px;

  a {
    color: unset;
  }
}

p code,
table code {
  background-color: var(--code-bg-color);
  color: var(--code-font-color);
  padding: 2px 5px;
  border-radius: 4px;
}

a {
  color: #00f;
}
a:hover {
  text-decoration: none;
}
a:visited {
  color: #00f;
}

#container {
  margin: 0 auto;
  max-width: 650px;
}

#container2 {
  margin: 0 auto;
  max-width: 900px;
}

#faces {
  display: grid;
  grid-gap: 2px;
  grid-template-columns: 1fr 1fr 1fr 1fr;

  div {
    cursor: pointer;
    user-select: none;

    background: linear-gradient(#bbb, var(--main-bg-color));
    aspect-ratio: 2/ 3;

    svg {
      display: block;
    }
  }

  div:hover {
    background: linear-gradient(#aaa, var(--main-bg-color));
  }

  .big {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
  }

  @media (min-width: 666px) {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    aspect-ratio: unset;

    .big {
      grid-column: 4 / 6;
      grid-row: 1 / 3;
    }
  }
}

.hide-sm {
  display: none;
}
@media (min-width: 666px) {
  .hide-sm {
    display: block;
  }
}

table {
  border-collapse: collapse;
  td,
  th {
    border: 1px solid #bbb;
    padding: 0.25em 0.5em;
  }
}
